package main
import(
	"fmt"
)
//遍历数组
func main(){
	arr := [...]string{0:"me",1:"chen",2:"gxr"}
	for index,value:=range arr{
		fmt.Printf("索引是%d,值是%v \n",index,value)
	}
	fmt.Println("")
	test(&arr)
	for index,value:=range arr{
		fmt.Printf("索引是%d,值是%v \n",index,value)
	}
}

func test(arr *[3]string){
	(*arr)[0] = "hwang"
	(*arr)[1] = "yu"
	(*arr)[2] = "dsr"
}